package com.template.method.demo01;

public class Hummer2 extends HummerModel{
    @Override
    public void start() {
        System.out.println("悍马2启动");
    }

    @Override
    public void stop() {
        System.out.println("悍马2停止");
    }

    @Override
    public void alarm() {
        System.out.println("悍马2鸣笛");
    }

    @Override
    public void engineBoom() {
        System.out.println("悍马2引擎咆哮");
    }

    @Override
    public void run() {
        //开动
        this.start();
        //鸣笛
        this.alarm();
        //咆哮
        this.engineBoom();
        //停止
        this.stop();
    }
}
